package org.dreamwork.drawing.framework.impl;

import org.dreamwork.drawing.framework.IEdge;
import org.dreamwork.drawing.framework.IVertex;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 2010-8-3
 * Time: 15:44:50
 */
public class DefaultEdge implements IEdge {
    protected IVertex source;
    protected IVertex target;
    protected double metric;

    public IVertex getSource () {
        return source;
    }

    public void setSource (IVertex source) {
        this.source = source;
    }

    public IVertex getTarget () {
        return target;
    }

    public void setTarget (IVertex target) {
        this.target = target;
    }

    public double getMetric () {
        return metric;
    }

    public void setMetric (double metric) {
        this.metric = metric;
    }
}